/*
 * @Author: 贺楚 2402041262@qq.com
 * @Date: 2023-01-12 09:23:01
 * @LastEditors: 贺楚 2402041262@qq.com
 * @LastEditTime: 2023-01-13 10:39:17
 * @FilePath: \vue-admin-template-master\src\api\members.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
//会员api
import request from '@/utils/request'

// 所有用户信息
export const getAllUserMessage = (data) => request({
  url: '/biz/getAllUserMessage',
  method: 'post',
  data
})


//删除用户
export const getDeleteUser = (data) => request({
  url: '/biz/deleteUser',
  method: 'post',
  data
})


// 添加管理员
export const getRegister = (data) => request({
  url: '/biz/register',
  method: 'post',
  data
})

// 修改后台登陆用户密码
export const updateUserPassword = (data) => request({
  url: '/biz/updateUserPassword',
  method: 'post',
  data
})

// 获取代理商列表
export const advertisementUserList = (data) => request({
  url: '/biz/advertisementUser/getList',
  method: 'post',
  data
})
// /biz/advertisementUser/getAdvertisementUserMetricData
export const getAdvertisementUserMetricData = (data) => request({
  url: '/biz/advertisementUser/getAdvertisementUserMetricData',
  method: 'post',
  data
})

// 广告商启用
export const enableAdvertisementUser = (data) => request({
  url: '/biz/advertisementUser/enableAdvertisementUser',
  method: 'post',
  data
})


// 广告商停用
export const stopAdvertisementUser = (data) => request({
  url: '/biz/advertisementUser/stopAdvertisementUser',
  method: 'post',
  data
})

// 添加广告商
export const addAdvertisementUser = (data) => request({
  url: '/biz/advertisementUser/add',
  method: 'post',
  data
})

// 添加二级广告商
export const addSecondaryUser = (data) => request({
  url: '/biz/advertisementUser/addSecondaryUser',
  method: 'post',
  data
})

// 获取二级广告商列表
export const getSecondaryUserList = (data) => request({
  url: '/biz/advertisementUser/getSecondaryUserList',
  method: 'post',
  data
})

// 广告商登录
// export const advertisementUserLogin = (data) =>request({
//   url: '/biz/advertisementUser/advertisementUserLogin',
//   method: 'post',
//   data
// })

// 获取广告商信息
export const getAdvertisementUserMes = (data) => request({
  url: '/biz/advertisementUser/getAdvertisementUserMes',
  method: 'post',
  data
})

// 获取我的收益明细列表
export const getMyRewardDetailsList = (data) => request({
  url: '/biz/getMyRewardDetailsList',
  method: 'post',
  data
})
// 修改代理商信息
export const updateAdvertisementUserMes = (data) => request({
  url: '/biz/advertisementUser/updateAdvertisementUserMes',
  method: 'post',
  data
})

// 分页获取广告商通知消息列表
export const getLoginUserNotificationList = (data) => request({
  url: '/biz/notificationManagement/getLoginUserNotificationList',
  method: 'post',
  data
})


// 分页获取广告商系统消息列表
export const getSysMessageList = (data) => request({
  url: '/biz/advertisementUser/getSysMessageList',
  method: 'post',
  data
})

// 新增广告主信息
export const addAdvertisementSponsor = (data) => request({
  url: '/biz/advertisementUser/addAdvertisementSponsor',
  method: 'post',
  data
})

// 修改广告主信息
export const updateAdvertisementSponsor = (data) => request({
  url: '/biz/advertisementUser/updateAdvertisementSponsor',
  method: 'post',
  data
})

// 分页获取广告主列表
export const getSponsorList = (data) => request({
  url: '/biz/advertisementUser/getSponsorList',
  method: 'post',
  data
})

// 分页获取当前登陆广告商收益列表
export const getRewardDetailList = (data) => request({
  url: '/biz/advertisementUser/getRewardDetailList',
  method: 'post',
  data
})

// 广告商提现
export const adUserWithdrow = (data) => request({
  url: '/biz/advertisementUser/adUserWithdrow',
  method: 'post',
  data
})

// 广告主审核通过
export const paseAdvertisementSponsor = (data) => request({
  url: '/biz/advertisementUser/paseAdvertisementSponsor',
  method: 'post',
  data
})

// 广告主审核驳回
export const rejectAdvertisementSponsor = (data) => request({
  url: '/biz/advertisementUser/rejectAdvertisementSponsor',
  method: 'post',
  data
})

// 广告主删除
export const deleteAdvertisementSponsor = (data) => request({
  url: '/biz/advertisementUser/deleteAdvertisementSponsor',
  method: 'post',
  data
})


// 分页获取合作意向列表
export const getPageList = (data) => request({
  url: '/biz/cooperation/getPageList',
  method: 'post',
  data
})

// 修改一条合作意向
export const updateCooperation = (data) => request({
  url: '/biz/cooperation/updateCooperation',
  method: 'post',
  data
})

// 删除一条合作意向
export const deleteCooperation = (data) => request({
  url: '/biz/cooperation/deleteCooperation',
  method: 'post',
  data
})


// 获取所有广告商处罚信息列表
export const getAdvertisementUserPenaltyList = (data) => request({
  url: '/biz/advertisementUser/getAdvertisementUserPenaltyList',
  method: 'post',
  data
})

// 新增广告商处罚
export const addAdvertisementUserPenalty = (data) => request({
  url: '/biz/advertisementUser/addAdvertisementUserPenalty',
  method: 'post',
  data
})

// 获取登陆用户广告商处罚信息列表
export const getLoginUserAdvertisementUserPenaltyList = (data) => request({
  url: '/biz/advertisementUser/getLoginUserAdvertisementUserPenaltyList',
  method: 'post',
  data
})


// 分页获取广告商提现审核列表
export const getAdUserWithdrowList = (data) => request({
  url: '/biz/advertisementUser/getAdUserWithdrowList',
  method: 'post',
  data
})

// 广告商提现通过
export const passAdUserWithdrow = (data) => request({
  url: '/biz/advertisementUser/passAdUserWithdrow',
  method: 'post',
  data
})

// 广告商提现驳回
export const rejectAdUserWithdrow = (data) => request({
  url: '/biz/advertisementUser/rejectAdUserWithdrow',
  method: 'post',
  data
})


// 分页获取当前登陆广告商提现列表
export const getLoginUserAdUserWithdrowList = (data) => request({
  url: '/biz/advertisementUser/getLoginUserAdUserWithdrowList',
  method: 'post',
  data
})

// 新增意见反馈
export const addAdFeedback = (data) => request({
  url: '/biz/advertisementUser/addAdFeedback',
  method: 'post',
  data
})

// 分页获取意见反馈列表
export const getAdFeedbackList = (data) => request({
  url: '/biz/advertisementUser/getAdFeedbackList',
  method: 'post',
  data
})
// 删除意见反馈
export const deleteAdFeedback = (data) => request({
  url: '/biz/advertisementUser/deleteAdFeedback',
  method: 'post',
  data
})

// 分销码
export const getUserExtensionQRCode = (data) => request({
  url: '/biz/advertisementUser/getAdvertisementUserExtensionQRCode',
  method: 'post',
  data
})


// 分销码（数字码）
export const getUserInviteCode = (data) => request({
  url: '/biz/getUserInviteCode',
  method: 'post',
  data
})
